package com.example.springboothomework.exception;

import lombok.Getter;

/**
 * @author: chenjianhao
 * @date: 2025/6/5
 * 返回码枚举类
 */
@Getter
public enum ResultCodeEnum {
    IMPORT_ERROR(441,"导入失败"),
    FILE_FORMAT_ERROR(436,"文件格式错误"),
    FILE_EMPTY(437,"文件为空"),
    EXPORT_ERROR(434,"导出失败"),
    EMPLOYEE_NOT_EXIST(401, "员工不存在"),
    PARAMS_ERROR(429, "参数错误"),
    COMPANY_NAME_EXIST(432, "公司名已存在"),
    COMPANY_EMPLOYEE_EXIST(431, "公司下还有员工，无法删除"),
    COMPANY_NOT_EXITS(430, "公司不存在");

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
